obj-m += 1_sleep.o

obj-m += 21_completion.o
21_completion-y = 21_completion_条件变量.o

obj-m += 31_workqueue.o
31_workqueue-y = 31_workqueue_工作队列.o

obj-m += 32_workqueue_arg.o
32_workqueue_arg-y = 32_workqueue_工作队列_传递参数.o

obj-m += 41_task_struct.o
41_task_struct-y = 41_kthread_内核线程_task_struct任务队列.o

PWD := $(CURDIR)
all:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean